<table class="layui-table">
    <colgroup>
        <col width="150">
        <col>
        <col>
        <col>
        <col width="200">
    </colgroup>
    <thead>
    <tr>
        <th>分类名</th>
        <th>分类LOGO</th>
        <th>显示</th>
        <th>排序</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach ($list as $data): ?>
        <tr>
            <td><?= $data['article_class_name'] ?></td>
            <td><img src="<?= HTTP_DOMAIN_ASSETS . '/' . $data['logo'] ?>" style="width: 50px;"/></td>
            <td>
                <?php if ($data['is_show'] == 1): ?>
                    显示
                    <?php else: ?>
                    隐藏
                <?php endif; ?>
            </td>
            <td><?= $data['sort'] ?></td>
            <td>
                <a href="/article-class/edit?id=" class="layui-btn layui-btn-small">编辑</a>
                <button data-url="/article-class/remove?article_class_id=<?=$data['article_class_id']?>"
                        class="oc-btn layui-btn layui-btn-small layui-btn-danger">删除</button>
            </td>
        </tr>
    <?php endforeach; ?>
    </tbody>
</table>